<?php

namespace app\index\service;

use app\index\dao\LawCaseCategoryDao;
use think\Collection;

/**
 * Class CategoryService
 * @package app\lawyer\service
 */
class CategoryService
{
    // dao
    private LawCaseCategoryDao $lawCaseCategoryDao;

    public function __construct(LawCaseCategoryDao $lawCaseCategoryDao)
    {
        $this->lawCaseCategoryDao = $lawCaseCategoryDao;
    }

    /**
     * @return Collection
     */
    public function index(): Collection
    {
        return $this->lawCaseCategoryDao->selectOptions();
    }

}
